﻿<%@ Page Title="我要提问" Language="C#" MasterPageFile="~/HealthCommunity.Master" AutoEventWireup="true" CodeBehind="AskQuestion.aspx.cs" Inherits="HealthCommunity.AskQuestion" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<asp:ScriptManager ID="sm" runat="server">
	</asp:ScriptManager>
	<div id="askquestioncontainer">
		<div class="contenttitle">
			<h2>
				我要提问</h2>
		</div>
		<table class="detail marginleft10">
			<tr>
				<td>
					类型:
				</td>
				<td>
					<asp:DropDownList ID="ddlQuestionCategory" runat="server" DataTextField="QuestionCategoryName" DataValueField="QuestionCategoryID">
					</asp:DropDownList>
				</td>
			</tr>
			<tr>
				<td>
					悬赏分数:
				</td>
				<td>
					<asp:TextBox ID="txtRewardScores" runat="server"></asp:TextBox>
				</td>
			</tr>
			<tr>
				<td>
					问题:
				</td>
				<td>
					<asp:TextBox ID="txtQuestion" runat="server" TextMode="MultiLine" Width="300" Height="100"></asp:TextBox>
					<asp:RequiredFieldValidator ID="rfvQuestion" runat="server" Display="Dynamic" ControlToValidate="txtQuestion" ErrorMessage="*" ForeColor="Red" ValidationGroup="aq"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
				<td valign="top">
					共享设置:
				</td>
				<td style="width:560px;">
					<div class="shareitem">
						<label>
							完全公开</label>
						<asp:CheckBox ID="chbIsPublic" runat="server" />
					</div>
					<div class="shareitem">
						<label class="floatleft">
							共享给药店</label>
						<asp:CheckBoxList ID="chblstDrugStore" runat="server" CssClass="floatleft" ClientIDMode="Static" DataTextField="DrugStoreName" DataValueField="DrugStoreID">
						</asp:CheckBoxList>
						<div class="clear">
						</div>
					</div>
					<asp:UpdateProgress ID="upp1" runat="server" AssociatedUpdatePanelID="up">
						<ProgressTemplate>
							<div style="font-size: 13px; padding: 0px 0px 10px 15px;">
								<asp:Image ID="imgUpdating" runat="server" ImageUrl="~/css/img/uploading.gif" />
							</div>
						</ProgressTemplate>
					</asp:UpdateProgress>
					<div class="shareitem">
						<label class="floatleft">
							分享给会员</label>
						<asp:UpdatePanel ID="up" runat="server">
							<ContentTemplate>
								<asp:DropDownList ID="ddlDrugStore" runat="server" CssClass="floatleft" DataTextField="DrugStoreName" DataValueField="DrugStoreID" AutoPostBack="true" OnSelectedIndexChanged="ddlDrugStore_SelectedIndexChanged">
								</asp:DropDownList>
								<div class="floatleft">
									<asp:ListBox ID="lstMember" runat="server" CssClass="floatleft" ClientIDMode="Static" Rows="20" Width="70" DataTextField="UserCName" DataValueField="UserID" SelectionMode="Single"></asp:ListBox>
									<div class="floatleft" style="margin: 100px 10px 100px 10px;">
										<asp:Button ID="btnAdd" runat="server" Text=">" ClientIDMode="Static" CssClass="whitebutton" OnClick="btnAdd_Click" />
										<br />
										<asp:Button ID="btnRemove" runat="server" Text="<" ClientIDMode="Static" CssClass="whitebutton" OnClick="btnRemove_Click" />
									</div>
									<asp:ListBox ID="lstMemberSelected" ClientIDMode="Static" runat="server" CssClass="floatleft" Width="70" Rows="20" AutoPostBack="true" SelectionMode="Single" ViewStateMode="Enabled" DataTextField="UserCName" DataValueField="ShareToMemberID"></asp:ListBox>
								</div>
								<div class="clear">
								</div>
							</ContentTemplate>
						</asp:UpdatePanel>
					</div>
				</td>
			</tr>
			<tr>
				<td>
				</td>
				<td>
					<div>
						<asp:Button ID="btnSubmit" runat="server" Text="提 交" OnClick="btnSubmit_Click" CssClass="submitbutton" Width="120" ValidationGroup="aq" />
						<asp:HyperLink ID="hlCancel" runat="server" Text="返 回" NavigateUrl="~/QuestionList.aspx"></asp:HyperLink>
					</div>
				</td>
			</tr>
		</table>
		<div class="marginleft10">
			<asp:Literal ID="ltrMsg" runat="server"></asp:Literal>
		</div>
	</div>
</asp:Content>
